import Mock from ".././bower_components/mockjs/dist/mock.js";
// 定义数据
var Random = Mock.Random
var {
	userdata
} = Mock.mock({
	"userdata|16-19": [{
		"id|+1": 1,
		user: "@ctitle(2, 5)",
		"title|2-5": [{
			"id|+1": 1,
			illness: "@cword(3,5)",
			"listdata|2-8": [{
				"id|+1": 1,
				list: "@ctitle(2,7)",
				illness: "@cword(5,100)",
				img: Random.image('70x40', '#fdfdfd', '#48d384', '🔣'),
			}]
		}]
	}, ],
});

// 配置mock路径，请求方式
Mock.mock("/user/list", "get", (data) => {
	return {
		code: 200,
		message: "查询用户信息成功",
		data: userdata,
	};
});
